﻿using UnityEngine;
using System.Collections;

/// <summary>
/// 방향.
/// </summary>
public enum wsDIR
{
	/// <summary>
	/// 방향 없음.
	/// </summary>
	NONE,
	/// <summary>
	/// 위쪽
	/// </summary>
	UP,
	/// <summary>
	/// 아래쪽
	/// </summary>
	DOWN,
	/// <summary>
	/// 왼쪽
	/// </summary>
	LEFT,
	/// <summary>
	/// 오른쪽
	/// </summary>
	RIGHT,
	/// <summary>
	/// 가운데
	/// </summary>
	CENTER
};

/// <summary>
/// 마우스 버튼.
/// </summary>
public static class wsMouse
{
	/// <summary>
	/// 왼쪽 버튼
	/// </summary>
	public const int LEFT = 0;
	/// <summary>
	/// 오른쪽 버튼
	/// </summary>
	public const int RIGHT = 1;
	/// <summary>
	/// 가운데 버튼
	/// </summary>
	public const int MIDDLE = 2;
};

/// <summary>
/// 가로/세로 크기.
/// </summary>
[System.Serializable]
public class wsSize
{
	/// <summary>
	/// 가로 크기.
	/// </summary>
	public float width;
	/// <summary>
	/// 세로 크기.
	/// </summary>
	public float height;

	/// <summary>
	/// 생성자
	/// </summary>
	/// <param name="w">가로 크기</param>
	/// <param name="h">세로 크기</param>
	public wsSize(float w, float h)
	{
		this.width = w;
		this.height = h;
	}
}

/// <summary>
/// X/Y 위치.
/// </summary>
[System.Serializable]
public class wsPosition
{
	/// <summary>
	/// x 좌표
	/// </summary>
	public float x;
	/// <summary>
	/// y 좌표
	/// </summary>
	public float y;

	/// <summary>
	/// 생성자
	/// </summary>
	/// <param name="x">x</param>
	/// <param name="y">y</param>
	public wsPosition(float x, float y)
	{
		this.x = x;
		this.y = y;
	}

	/// <summary>
	/// 생성자
	/// </summary>
	/// <param name="position">위치 벡터</param>
	public wsPosition(Vector2 position)
	{
		this.x = position.x;
		this.y = position.y;
	}
}
